package com.jic.market.response.rest.discount;

import com.jic.market.response.rest.groupon.PostPayGroupInstDetailInfo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author yinhaijun
 * @date: 2020/4/27
 */
@Data
public class GoodsDetail implements Serializable {
    private static final long serialVersionUID = 6744456396323058484L;

    @ApiModelProperty(notes = "商品编码")
    private String thirdSkuId;
    @ApiModelProperty(notes = "商品数量")
    private Integer num;
    @ApiModelProperty(notes = "商品原价")
    private BigDecimal salePrice;

    @ApiModelProperty(notes = "活动编码")
    private String promotionCode;
    @ApiModelProperty(notes = "活动类型-单品类")
    private Integer frontPromotionType;
    @ApiModelProperty(notes = "活动类型描述")
    private String frontPromotionTypeName;
    @ApiModelProperty(notes = "活动优惠金额")
    private BigDecimal promotionDiscountTotalAmount;
    @ApiModelProperty(notes = "优惠总运费")
    private BigDecimal promotionDiscountFreightAmount;
    @ApiModelProperty(notes = "当前单品活动返回信息")
    private String singleMessage;

    //拼团专用
    @ApiModelProperty(notes = "开团或参团是否成功  true 成功")
    private Boolean launchOrJoinSuccess;
    @ApiModelProperty(notes = "拼团实例编码")
    private String grouponInstCode;
    @ApiModelProperty(notes = "成团用户明细，取消团单的时候会返回")
    private List<PostPayGroupInstDetailInfo> groupInstDetailInfoList;

    //秒杀专用
    @ApiModelProperty(notes = "秒杀每日时间段")
    private List<SkillTime> skillTimeList;
    @ApiModelProperty(notes = "单品活动有效数量")
    private Integer singleValidNum;
    @ApiModelProperty(notes = "超限规则，0按原价购买 1不可以购买")
    private String overLimitRule;


    // 预售专用
    @ApiModelProperty(notes = "预售价")
    BigDecimal salePriceWithTax;
    @ApiModelProperty(notes = "订金")
    BigDecimal frontMoney;
    @ApiModelProperty(notes = "订金抵扣额")
    BigDecimal frontMoneyDeductAmount;

}
